package org.smartboot.flow.core;

/**
 * @author qinluo
 * @date 2022-11-28 20:10:46
 * @since 1.0.0
 */
public interface DegradeCallback<T, S> extends Describable {

    default void doWithDegrade(EngineContext<T, S> context, Throwable e) {

    }

    @Override
    default String describe() {
        return this.getClass().getName();
    }
}
